package cn.iocoder.yudao.module.contract.controller.admin.orderContract.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.util.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - 订单合同 Response VO")
@Data
@ExcelIgnoreUnannotated
public class OrderContractRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "3407")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "类型编码")
    @ExcelProperty("类型编码")
    private String contractTypeCode;

    @Schema(description = "类型名称", example = "王五")
    @ExcelProperty("类型名称")
    private String contractTypeName;

    @Schema(description = "模板id", example = "6331")
    @ExcelProperty("模板id")
    private Long contractTemplateId;

    @Schema(description = "模板名称", example = "李四")
    @ExcelProperty("模板名称")
    private String contractTemplateName;

    @Schema(description = "订单id", example = "11737")
    @ExcelProperty("订单id")
    private String orderId;

    @Schema(description = "合同html")
    @ExcelProperty("合同html")
    private String contractHtml;

    @Schema(description = "合同文件url", example = "https://www.iocoder.cn")
    @ExcelProperty("合同文件url")
    private String contractFileUrl;

    @Schema(description = "下载次数", example = "18690")
    @ExcelProperty("下载次数")
    private Integer downloadCount;

    @Schema(description = "打印次数", example = "28392")
    @ExcelProperty("打印次数")
    private Integer printCount;

    @Schema(description = "附件id-多个,隔开")
    @ExcelProperty("附件id-多个,隔开")
    private String fileIds;

    @Schema(description = "扫描件附件id-多个,隔开")
    @ExcelProperty("扫描件附件id-多个,隔开")
    private String scanFileIds;

    @Schema(description = "释放推送状态")
    @ExcelProperty(value = "释放推送状态", converter = DictConvert.class)
    @DictFormat("order_contract_push_release") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String isPushRelease;

    @Schema(description = "合同状态", example = "1")
    @ExcelProperty(value = "合同状态", converter = DictConvert.class)
    @DictFormat("order_contract_status") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String status;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}